#ifndef _ASMARM_UACCESS_H
#define _ASMARM_UACCESS_H

#define VERIFY_READ 0
#define VERIFY_WRITE 1

static inline long strnlen_user(const char *s, long n)
{
	unsigned long res = 0;

	// if (__addr_ok(s))
		res = __strnlen_user(s, n);

	return res;
}

#define __copy_from_user(to,from,n)	(memcpy(to, (void *)from, n), 0)

static inline unsigned long copy_from_user(void *to, const void *from, unsigned long n)
{
	// if (access_ok(VERIFY_READ, from, n))
		n = __copy_from_user(to, from, n);
	// else /* security hole - plug it */
		// memset(to, 0, n);
	return n;
}

#endif
